<?php
class SaleWidget extends CWidget{
    
    public $limit = 8;
    
    public function run(){
        $products = Product::homeProduct($this->limit);
        $this->render('sale',array('products' => $products));
    }
}